package com.example.dell.network.okgonet;

import com.example.dell.been.BasicBeen;
import com.google.gson.Gson;

public class MyException extends IllegalStateException {
    private BasicBeen errorBean;

    public MyException(String s) {
        super(s);
        errorBean = new Gson().fromJson(s, BasicBeen.class);
    }

    public BasicBeen getErrorBean() {
        return errorBean;
    }
}
